/*
 *
 * (c) Copyright Ascensio System Limited 2010-2023
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
*/


@import "../../App_Themes/default/leftmenu.less";

.jstree {
    background-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 20px 5px 5px;
    margin-top: -1px;
    position: relative;
}
.jstree ul,
.jstree li {
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.jstree li {
    line-height: 18px;
    margin-left: 18px;
    min-height: 18px;
    white-space: nowrap;
}
.jstree > ul > li {
    margin-left: 0;
}
.jstree > ul > li.display-none {
    display: none;
}
.jstree > ul > li > a {
    font-size: 14px;
}
.jstree-inprojects > ul > li > a {
    font-size: 12px;
}

.jstree-wholerow {
    left: 0;
    line-height: 29px;
    position: absolute;
    width: 100%;
}


.jstree-open > ul {
    display: block;
}
.jstree-closed > ul {
    display: none;
}
.jstree-icon {
    background: url('../../../../skins/default/images/svg/documents/folder.svg') no-repeat;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    margin: 0 -2px 0 0;
    padding: 0;
    text-decoration: none;
    vertical-align: middle;
    width: 12px;
}

.jstree-icon.jstree-expander {
    background-image: none;
    position: relative;
}

.jstree-icon.jstree-expander:after {
    border-bottom: 4px solid transparent;
    border-left: 4px solid @jstree-expander;
    border-top: 4px solid transparent;
    content: "";
    height: 0;
    left: 3px;
    margin-top: -6px;
    position: absolute;
    top: 50%;
    width: 0;
}
.jstree-empty > .jstree-icon.jstree-expander {
    visibility: hidden;
}
.jstree-open > .jstree-icon.jstree-expander {
}
.jstree-open > .jstree-icon.jstree-expander:after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #696969;
    content: "";
    height: 0;
    left: 0px;
    margin-top: -4px;
    position: absolute;
    top: 50%;
    width: 0;
}

.jstree-closed > .jstree-icon.jstree-expander.jstree-load-node {
    background-image: url('images/@{loader-12-gif}');
    background-position: center 2px;
    background-size:100%;
}
.node-selected.jstree-closed > .jstree-icon.jstree-expander.jstree-load-node {
    background-image: url('images/@{loader-12-gray-gif}');
}
.jstree-closed > .jstree-icon.jstree-expander.jstree-load-node:after {
    border: 0 none;
}

.jstree .jstree-root-as {
    margin-left: 0;
}
.jstree .jstree-root-parent > span,
.jstree .jstree-root-parent > a {
    display: none;
}
.jstree .jstree-root-out {
    display: none;
}


.jstree a {
    cursor: pointer;
    display: inline-block;
    height: 15px;
    line-height: 16px;
    margin: 1px 0;
    outline: none;
    padding: 6px 3px 6px 2px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}
.jstree a:hover {
    text-decoration: underline;
}

a .jstree-icon {
    margin-right: 3px;
    height: 16px;
    width: 16px;
    background-position: 1px -1px;
}
a .menu-item-icon.myFiles {
    background-position: 0 -28px;
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.shareformeFiles {
    background-position: 0 -704px;
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.recentFiles {
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.favoritesFiles {
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.templatesFiles {
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.privacyFiles {
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.corporateFiles {
    background-position: 0 -366px;
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.projectFiles {
    background-position: 0 -54px;
    margin: 1px 5px 0 1px;
}
a .menu-item-icon.trashFiles {
    background-position: 0 -574px;
    margin: 1px 5px 0 1px;
}
a .jstree-icon.myFiles {
    background-position: -60px 0;
    margin: 1px 5px 0 1px;
}
a .jstree-icon.shareformeFiles {
    background-position: -80px 0;
    margin: 1px 5px 0 1px;
}
a .jstree-icon.recentFiles {
    margin: 1px 5px 0 1px;
}
a .jstree-icon.favoritesFiles {
    margin: 1px 5px 0 1px;
}
a .jstree-icon.templatesFiles {
    margin: 1px 5px 0 1px;
}
a .jstree-icon.privacyFiles {
    margin: 1px 5px 0 1px;
}
a .jstree-icon.corporateFiles {
    background-position: -100px 0;
    margin: 1px 5px 0 1px;
}
a .jstree-icon.projectFiles {
    margin: 1px 5px 0 1px;
    background-position: -120px 0;
}
a .jstree-icon.trashFiles {
    background-position: -140px 0;
    margin: 1px 5px 0 1px;
}
a.jstree-close-project:hover {
    background-color: #FFF;
    border: 1px solid #FFF;
}

.jstree .is-new {
    display: none;
    float: right;
    margin: 4px 8px 0 0;
    position: relative;
}

.jstree.only-privacy > ul > .tree-node,
.jstree > ul > .tree-node.privacy-node {
    display: none;
}
.jstree.only-privacy > ul > .tree-node.privacy-node {
    display: inherit;
}

.jstree .tree-node-splitter {
    display: none;
}
.page-menu .jstree .tree-node-splitter {
    display: block;
    min-height: 11px;
}

@media (max-height: 800px) {
    .page-menu .jstree .tree-node-splitter {
        display: none;
    }
}
